package ioc.circular;

public class H {
  public H() {
    System.out.println("h 默认构造函数 hashcode:-----" + this.hashCode());
  }

  private G g;

  public G getG() {
    return g;
  }

  public void setG(G g) {
    this.g = g;
  }

  @Override
  public String toString() {
    return "H{" + this.hashCode() +
            " G=" + g.hashCode() + " G的h=" + g.getH()
            .hashCode() +
            '}';
  }
}
